package com.gears_software.sxdc.dccx.ui.activity;

import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ListView;
import android.widget.TextView;

import com.gears_software.sxdc.dccx.R;
import com.gears_software.sxdc.dccx.application.DCCXApplication;
import com.gears_software.sxdc.dccx.data.adapter.ChengKeListAdapter;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.App;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;

import qiu.niorgai.StatusBarCompat;

/**
 * Created by SunMuran on 2017/8/1.
 * 车主已完成的activity
 */
@EActivity(R.layout.chezhu_have_completed)
public class ChezhuHaveCompletedActivity extends AppCompatActivity {
    @App
    DCCXApplication app;
    @ViewById
    TextView actionbar_title;
    @ViewById
    TextView back_icon;
    @ViewById
    TextView right_icon;
    @ViewById
    ListView lv_listView;

    ChengKeListAdapter adapter;


    @AfterViews
    void created() {
        actionbar_title.setText("已完成");
        initIconfont();
        StatusBarCompat.setStatusBarColor(this, ContextCompat.getColor(this, R.color.colorActionbar));

        adapter = new ChengKeListAdapter(this);
        lv_listView.setAdapter(adapter);

    }

    void initIconfont() {
        back_icon.setTypeface(app.iconfont);
        back_icon.setText(R.string.back_icon);
        right_icon.setVisibility(View.GONE);

    }

    @Click
    void back_icon() {
        finish();
    }
}
